$OpenBSD: patch-boehm-gc_threadlibs_c,v 1.1.1.1 2011/11/14 13:00:57 pascal Exp $
--- boehm-gc/threadlibs.c.orig	Sat Nov 12 10:45:24 2011
+++ boehm-gc/threadlibs.c	Sat Nov 12 10:46:11 2011
@@ -15,6 +15,9 @@ int main()
 	|| defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)
         printf("-lpthread\n");
 #   endif
+#   if defined(GC_OPENBSD_THREADS)
+	printf("-pthread\n");
+#   endif
 #   if defined(GC_FREEBSD_THREADS)
 #       if (__FREEBSD_version >= 500000)
           printf("-lpthread\n");
